package Interfazeak;
/**
 * 
 * @author Txantxangorriak
 *
 */
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class EI_JokalariKud extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					EI_JokalariKud frame = new EI_JokalariKud();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public EI_JokalariKud() {
		setTitle("Jokalaria Kudeatu");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 420, 300);
		contentPane = new JPanel();
		contentPane.setBackground(Color.BLUE);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		
		JButton btnJokalariaSaldu = new JButton("JOKALARIA SALDU");
		btnJokalariaSaldu.setFont(new Font("Times New Roman", Font.BOLD, 13));
		btnJokalariaSaldu.setBounds(27, 159, 164, 27);
		btnJokalariaSaldu.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				EI_JokalariaSaldu jsa= new EI_JokalariaSaldu();
				jsa.setVisible(true);
				EI_JokalariKud.this.setVisible(false);
				 
			}});
		contentPane.setLayout(null);
		contentPane.add(btnJokalariaSaldu);
		
		
		
		
		JButton btnJokalariaFitxatu = new JButton("JOKALARIA FITXATU");
		btnJokalariaFitxatu.setFont(new Font("Times New Roman", Font.BOLD, 13));
		btnJokalariaFitxatu.setBounds(213, 159, 164, 27);
		btnJokalariaFitxatu.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				EI_JokalariaFitxatu jf= new EI_JokalariaFitxatu();
				 jf.setVisible(true);
				EI_JokalariKud.this.setVisible(false);
				 
			}});
		contentPane.add(btnJokalariaFitxatu);
		
		JLabel lblJokalariaKudeatu = new JLabel("JOKALARIA KUDEATU");
		lblJokalariaKudeatu.setForeground(Color.WHITE);
		lblJokalariaKudeatu.setFont(new Font("Times New Roman", Font.BOLD, 31));
		lblJokalariaKudeatu.setBounds(27, 43, 349, 37);
		contentPane.add(lblJokalariaKudeatu);
		
		
		
	}
}
